package sevensoft.行为型模式.访问者模式;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

public class Demo {
    public static void main(String[] args) {
        Home home = new Home();

        home.add(new Cat());
        home.add(new Dog());

//        home.action(new Owner());
        home.action(new Someone());




    }
}
